package service;

import dao.User;
import dao.UserDao;
import dao.UserDaoImpl;
import factory.UserDaoFactory;

public class UserServiceImpl implements UserService{
    private UserDao dao= UserDaoFactory.getInstance();
    private UserDao userDao;
    @Override
    public void save(User user) {
        dao.save(user);
    }
    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }
}
